﻿using System;
using Ue.Infrastructure.DomainBase;
using Ue.Qcdz.Domain.ContentTypes;
using Ue.Qcdz.Domain.TreeViews;

namespace Ue.Qcdz.Domain.Tags
{
    public class Tag : EntityBase,ITreeNodeTag
    {
        public Tag(ContentType contentType)
            : this(null, contentType) { }

        public Tag(object key, ContentType contentType)
            : base(key)
        {
            this.ContentType = contentType;
        }

        public ContentType ContentType { get; private set; }

        public string Name { get; set; }

        public string Description { get; set; }
    }
}
